#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
using namespace std;

int A()
{
	long int n = 0, m = 0, x = 0, y = 0;
	long int max = 0, min = 0;
	cin >> n >> m;
	if (n == 1)
	{
		return 0;
	}

	while (m > 0)
	{
		cin >> x >> y;
		max = 1;
		min = 0;
		m--;
	}

	return max - min;
}

//int main()
//{
//	cout << A() << endl;
//	return 0;
//}